<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>2-mvvm举例--双向数据绑定</title>
	<script src="./js/vue.js"></script>
</head>
<body>
	<!-- 模板 -->
	<div id="demo">
		<input type="text" v-model="message">
		<p>{{message}}</p>
	</div>

	<script>
		// 数据
		let vdata = {
			message:"hello,Vuejs!"
		}

		// VM实例
		var vm = new Vue({
			el:"#demo",	//挂载元素
			data:vdata
		})
	</script>
</body>
</html>